package com.cx.pojo;

import java.util.ArrayList;
import java.util.List;

public class BrandExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BrandExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andBrandChineseNameIsNull() {
            addCriterion("brand_chinese_name is null");
            return (Criteria) this;
        }

        public Criteria andBrandChineseNameIsNotNull() {
            addCriterion("brand_chinese_name is not null");
            return (Criteria) this;
        }

        public Criteria andBrandChineseNameEqualTo(String value) {
            addCriterion("brand_chinese_name =", value, "brandChineseName");
            return (Criteria) this;
        }

        public Criteria andBrandChineseNameNotEqualTo(String value) {
            addCriterion("brand_chinese_name <>", value, "brandChineseName");
            return (Criteria) this;
        }

        public Criteria andBrandChineseNameGreaterThan(String value) {
            addCriterion("brand_chinese_name >", value, "brandChineseName");
            return (Criteria) this;
        }

        public Criteria andBrandChineseNameGreaterThanOrEqualTo(String value) {
            addCriterion("brand_chinese_name >=", value, "brandChineseName");
            return (Criteria) this;
        }

        public Criteria andBrandChineseNameLessThan(String value) {
            addCriterion("brand_chinese_name <", value, "brandChineseName");
            return (Criteria) this;
        }

        public Criteria andBrandChineseNameLessThanOrEqualTo(String value) {
            addCriterion("brand_chinese_name <=", value, "brandChineseName");
            return (Criteria) this;
        }

        public Criteria andBrandChineseNameLike(String value) {
            addCriterion("brand_chinese_name like", value, "brandChineseName");
            return (Criteria) this;
        }

        public Criteria andBrandChineseNameNotLike(String value) {
            addCriterion("brand_chinese_name not like", value, "brandChineseName");
            return (Criteria) this;
        }

        public Criteria andBrandChineseNameIn(List<String> values) {
            addCriterion("brand_chinese_name in", values, "brandChineseName");
            return (Criteria) this;
        }

        public Criteria andBrandChineseNameNotIn(List<String> values) {
            addCriterion("brand_chinese_name not in", values, "brandChineseName");
            return (Criteria) this;
        }

        public Criteria andBrandChineseNameBetween(String value1, String value2) {
            addCriterion("brand_chinese_name between", value1, value2, "brandChineseName");
            return (Criteria) this;
        }

        public Criteria andBrandChineseNameNotBetween(String value1, String value2) {
            addCriterion("brand_chinese_name not between", value1, value2, "brandChineseName");
            return (Criteria) this;
        }

        public Criteria andBrandFeatureIsNull() {
            addCriterion("brand_feature is null");
            return (Criteria) this;
        }

        public Criteria andBrandFeatureIsNotNull() {
            addCriterion("brand_feature is not null");
            return (Criteria) this;
        }

        public Criteria andBrandFeatureEqualTo(String value) {
            addCriterion("brand_feature =", value, "brandFeature");
            return (Criteria) this;
        }

        public Criteria andBrandFeatureNotEqualTo(String value) {
            addCriterion("brand_feature <>", value, "brandFeature");
            return (Criteria) this;
        }

        public Criteria andBrandFeatureGreaterThan(String value) {
            addCriterion("brand_feature >", value, "brandFeature");
            return (Criteria) this;
        }

        public Criteria andBrandFeatureGreaterThanOrEqualTo(String value) {
            addCriterion("brand_feature >=", value, "brandFeature");
            return (Criteria) this;
        }

        public Criteria andBrandFeatureLessThan(String value) {
            addCriterion("brand_feature <", value, "brandFeature");
            return (Criteria) this;
        }

        public Criteria andBrandFeatureLessThanOrEqualTo(String value) {
            addCriterion("brand_feature <=", value, "brandFeature");
            return (Criteria) this;
        }

        public Criteria andBrandFeatureLike(String value) {
            addCriterion("brand_feature like", value, "brandFeature");
            return (Criteria) this;
        }

        public Criteria andBrandFeatureNotLike(String value) {
            addCriterion("brand_feature not like", value, "brandFeature");
            return (Criteria) this;
        }

        public Criteria andBrandFeatureIn(List<String> values) {
            addCriterion("brand_feature in", values, "brandFeature");
            return (Criteria) this;
        }

        public Criteria andBrandFeatureNotIn(List<String> values) {
            addCriterion("brand_feature not in", values, "brandFeature");
            return (Criteria) this;
        }

        public Criteria andBrandFeatureBetween(String value1, String value2) {
            addCriterion("brand_feature between", value1, value2, "brandFeature");
            return (Criteria) this;
        }

        public Criteria andBrandFeatureNotBetween(String value1, String value2) {
            addCriterion("brand_feature not between", value1, value2, "brandFeature");
            return (Criteria) this;
        }

        public Criteria andLogoUrlIsNull() {
            addCriterion("logo_url is null");
            return (Criteria) this;
        }

        public Criteria andLogoUrlIsNotNull() {
            addCriterion("logo_url is not null");
            return (Criteria) this;
        }

        public Criteria andLogoUrlEqualTo(String value) {
            addCriterion("logo_url =", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlNotEqualTo(String value) {
            addCriterion("logo_url <>", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlGreaterThan(String value) {
            addCriterion("logo_url >", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlGreaterThanOrEqualTo(String value) {
            addCriterion("logo_url >=", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlLessThan(String value) {
            addCriterion("logo_url <", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlLessThanOrEqualTo(String value) {
            addCriterion("logo_url <=", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlLike(String value) {
            addCriterion("logo_url like", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlNotLike(String value) {
            addCriterion("logo_url not like", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlIn(List<String> values) {
            addCriterion("logo_url in", values, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlNotIn(List<String> values) {
            addCriterion("logo_url not in", values, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlBetween(String value1, String value2) {
            addCriterion("logo_url between", value1, value2, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlNotBetween(String value1, String value2) {
            addCriterion("logo_url not between", value1, value2, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Byte value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Byte value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Byte value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Byte value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Byte value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Byte> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Byte> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Byte value1, Byte value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andOther1IsNull() {
            addCriterion("other1 is null");
            return (Criteria) this;
        }

        public Criteria andOther1IsNotNull() {
            addCriterion("other1 is not null");
            return (Criteria) this;
        }

        public Criteria andOther1EqualTo(String value) {
            addCriterion("other1 =", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotEqualTo(String value) {
            addCriterion("other1 <>", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1GreaterThan(String value) {
            addCriterion("other1 >", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1GreaterThanOrEqualTo(String value) {
            addCriterion("other1 >=", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1LessThan(String value) {
            addCriterion("other1 <", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1LessThanOrEqualTo(String value) {
            addCriterion("other1 <=", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1Like(String value) {
            addCriterion("other1 like", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotLike(String value) {
            addCriterion("other1 not like", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1In(List<String> values) {
            addCriterion("other1 in", values, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotIn(List<String> values) {
            addCriterion("other1 not in", values, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1Between(String value1, String value2) {
            addCriterion("other1 between", value1, value2, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotBetween(String value1, String value2) {
            addCriterion("other1 not between", value1, value2, "other1");
            return (Criteria) this;
        }

        public Criteria andOther2IsNull() {
            addCriterion("other2 is null");
            return (Criteria) this;
        }

        public Criteria andOther2IsNotNull() {
            addCriterion("other2 is not null");
            return (Criteria) this;
        }

        public Criteria andOther2EqualTo(String value) {
            addCriterion("other2 =", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotEqualTo(String value) {
            addCriterion("other2 <>", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2GreaterThan(String value) {
            addCriterion("other2 >", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2GreaterThanOrEqualTo(String value) {
            addCriterion("other2 >=", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2LessThan(String value) {
            addCriterion("other2 <", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2LessThanOrEqualTo(String value) {
            addCriterion("other2 <=", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2Like(String value) {
            addCriterion("other2 like", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotLike(String value) {
            addCriterion("other2 not like", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2In(List<String> values) {
            addCriterion("other2 in", values, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotIn(List<String> values) {
            addCriterion("other2 not in", values, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2Between(String value1, String value2) {
            addCriterion("other2 between", value1, value2, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotBetween(String value1, String value2) {
            addCriterion("other2 not between", value1, value2, "other2");
            return (Criteria) this;
        }

        public Criteria andBrandEnglishNameIsNull() {
            addCriterion("brand_english_name is null");
            return (Criteria) this;
        }

        public Criteria andBrandEnglishNameIsNotNull() {
            addCriterion("brand_english_name is not null");
            return (Criteria) this;
        }

        public Criteria andBrandEnglishNameEqualTo(String value) {
            addCriterion("brand_english_name =", value, "brandEnglishName");
            return (Criteria) this;
        }

        public Criteria andBrandEnglishNameNotEqualTo(String value) {
            addCriterion("brand_english_name <>", value, "brandEnglishName");
            return (Criteria) this;
        }

        public Criteria andBrandEnglishNameGreaterThan(String value) {
            addCriterion("brand_english_name >", value, "brandEnglishName");
            return (Criteria) this;
        }

        public Criteria andBrandEnglishNameGreaterThanOrEqualTo(String value) {
            addCriterion("brand_english_name >=", value, "brandEnglishName");
            return (Criteria) this;
        }

        public Criteria andBrandEnglishNameLessThan(String value) {
            addCriterion("brand_english_name <", value, "brandEnglishName");
            return (Criteria) this;
        }

        public Criteria andBrandEnglishNameLessThanOrEqualTo(String value) {
            addCriterion("brand_english_name <=", value, "brandEnglishName");
            return (Criteria) this;
        }

        public Criteria andBrandEnglishNameLike(String value) {
            addCriterion("brand_english_name like", value, "brandEnglishName");
            return (Criteria) this;
        }

        public Criteria andBrandEnglishNameNotLike(String value) {
            addCriterion("brand_english_name not like", value, "brandEnglishName");
            return (Criteria) this;
        }

        public Criteria andBrandEnglishNameIn(List<String> values) {
            addCriterion("brand_english_name in", values, "brandEnglishName");
            return (Criteria) this;
        }

        public Criteria andBrandEnglishNameNotIn(List<String> values) {
            addCriterion("brand_english_name not in", values, "brandEnglishName");
            return (Criteria) this;
        }

        public Criteria andBrandEnglishNameBetween(String value1, String value2) {
            addCriterion("brand_english_name between", value1, value2, "brandEnglishName");
            return (Criteria) this;
        }

        public Criteria andBrandEnglishNameNotBetween(String value1, String value2) {
            addCriterion("brand_english_name not between", value1, value2, "brandEnglishName");
            return (Criteria) this;
        }

        public Criteria andSearchBgImgIsNull() {
            addCriterion("search_bg_img is null");
            return (Criteria) this;
        }

        public Criteria andSearchBgImgIsNotNull() {
            addCriterion("search_bg_img is not null");
            return (Criteria) this;
        }

        public Criteria andSearchBgImgEqualTo(String value) {
            addCriterion("search_bg_img =", value, "searchBgImg");
            return (Criteria) this;
        }

        public Criteria andSearchBgImgNotEqualTo(String value) {
            addCriterion("search_bg_img <>", value, "searchBgImg");
            return (Criteria) this;
        }

        public Criteria andSearchBgImgGreaterThan(String value) {
            addCriterion("search_bg_img >", value, "searchBgImg");
            return (Criteria) this;
        }

        public Criteria andSearchBgImgGreaterThanOrEqualTo(String value) {
            addCriterion("search_bg_img >=", value, "searchBgImg");
            return (Criteria) this;
        }

        public Criteria andSearchBgImgLessThan(String value) {
            addCriterion("search_bg_img <", value, "searchBgImg");
            return (Criteria) this;
        }

        public Criteria andSearchBgImgLessThanOrEqualTo(String value) {
            addCriterion("search_bg_img <=", value, "searchBgImg");
            return (Criteria) this;
        }

        public Criteria andSearchBgImgLike(String value) {
            addCriterion("search_bg_img like", value, "searchBgImg");
            return (Criteria) this;
        }

        public Criteria andSearchBgImgNotLike(String value) {
            addCriterion("search_bg_img not like", value, "searchBgImg");
            return (Criteria) this;
        }

        public Criteria andSearchBgImgIn(List<String> values) {
            addCriterion("search_bg_img in", values, "searchBgImg");
            return (Criteria) this;
        }

        public Criteria andSearchBgImgNotIn(List<String> values) {
            addCriterion("search_bg_img not in", values, "searchBgImg");
            return (Criteria) this;
        }

        public Criteria andSearchBgImgBetween(String value1, String value2) {
            addCriterion("search_bg_img between", value1, value2, "searchBgImg");
            return (Criteria) this;
        }

        public Criteria andSearchBgImgNotBetween(String value1, String value2) {
            addCriterion("search_bg_img not between", value1, value2, "searchBgImg");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}